package com.github.m6d21.sso.support.configuration;

import com.github.m6d21.sso.support.annotation.ArrayArgumentResolver;
import com.github.m6d21.sso.support.annotation.DateArgumentResolver;
import java.util.List;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2018/12/18 Tue 22:54:00
 * @since 1.0.0
 */
@Configuration
public class ArgumentResolverConfiguration implements WebMvcConfigurer {

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(new DateArgumentResolver());
        resolvers.add(new ArrayArgumentResolver());
    }
}
